<?php

namespace App\Http\Model;

use Illuminate\Database\Eloquent\Model;

class Test1 extends Model
{
    //
    protected $table = 'test1';
    protected $primaryKey = 'uid';
    public $timestamps = false;
    protected $guarded = [];

    public function fangfa1(){
        return $this->hasOne('App\Http\Model\Test2','t1_uid','uid');
//        return $this->hasMany('App\Http\Model\Test2','t1_uid','uid');
    }
}
